def call(String buildCmd) {
    println "********** Step. 开始执行编译命令 **********"

    try {
        def url = 'http://10.192.28.27:8980/index'
        def req = new URL(url).openConnection();
	    println(url)
	    
        req = new URL(url).openConnection();
        //req.setRequestProperty("function", func)
	   
	    def rc = req.getResponseCode()
	    println(rc);
	    if(!rc.equals(200)) {
	       error("response error, status code not 200")
	    }
	   
	  //  def resText = req.getInputStream().getText()
	   // println(resText);
	   // def resMap = new groovy.json.JsonSlurperClassic().parseText(resText)
	   // println(resMap);
        println "********** Step. 执行编译命令成功 **********"
    }
    catch(Exception e) {
        def errMsg = e.toString()
        println "@@@@@@@@@@ Step. 编译应用代码失败, 查看错误日志进行排查 @@@@@@@@@@" + errMsg
        throw e
    }   
}